// adapter/persistence/BorrowRecordJpaRepository.java
package com.library.bookservice.adapter.persistence;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import java.util.List;

/**
 * 借阅记录JPA仓库接口
 */
public interface BorrowRecordJpaRepository extends JpaRepository<BorrowRecordEntity, Long> {
    List<BorrowRecordEntity> findByBookId(Long bookId);
    List<BorrowRecordEntity> findByBorrowerName(String borrowerName);
    List<BorrowRecordEntity> findByReturnedFalse();
}